package com.leo.stockmarket.service;

import com.leo.stockmarket.bean.TokenBean;
import com.leo.stockmarket.dao.TokenDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 890231 lxj
 * @version 1.0
 * @date 2020/8/25 9:04
 */
@Service
public class TokenServiceImpl implements TokenService {

    @Autowired
    private TokenDao tokenDao;

    @Override
    public TokenBean queryRecentTokenStr() {
        List<TokenBean> tokenBeans = tokenDao.queryTokenList();
        return tokenBeans.get(0);
    }
}
